/*
 * @Descripttion: 0库存和负库存表单头
 * @Author: caijj
 * @Date: 2021-03-15 10:05:40
 * @LastEditors: caijj
 * @LastEditTime: 2021-03-15 10:09:40
 */
const columns = [
  {
    prop: 'rowLabel',
    key: 'rowLabel',
    label: '行标签',
    width: '250px',
    align: 'left',
    tooltip: true
  },
  {
    prop: 'endStockAmount',
    key: 'endStockAmount',
    width: '180px',
    label: '经营SKU数'
  },
  {
    prop: 'sales-revenue',
    key: 'sales-revenue',
    label: '负库存',
    children: [
      {
        prop: 'salesIncome',
        key: 'salesIncome',
        width: '100%',
        label: '销售收入'
      },
      {
        prop: 'salesIncomeBudgetAchievingRate',
        key: 'salesIncomeBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '预算达成率'
      },
      {
        prop: 'salesIncomeMom',
        key: 'salesIncomeMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比'
      },
      {
        prop: 'salesIncomeYoy',
        key: 'salesIncomeYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比'
      },
      {
        prop: 'salesIncomeRate',
        key: 'salesIncomeRate',
        width: '100%',
        toPercent: true,
        label: '占比'
      }
    ]
  },
  {
    prop: 'customer-unit-price',
    key: 'customer-unit-price',
    label: '断货',
    children: [
      {
        prop: 'receipt',
        key: 'receipt',
        width: '100%',
        label: '客单价'
      },
      {
        prop: 'receiptBudgetAchievingRate',
        key: 'receiptBudgetAchievingRate',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '预算达成率'
      },
      {
        prop: 'receiptMom',
        key: 'receiptMom',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '环比'
      },
      {
        prop: 'receiptYoy',
        key: 'receiptYoy',
        width: '100%',
        markStyle: true,
        toPercent: true,
        label: '同比'
      }
    ]
  }
];

export default columns;
